package cn.melonlib.download.comp.service;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.function.Consumer;

/**
 * 输出资源
 */
@FunctionalInterface
public interface StreamResource  {

    /**
     * 输出
     * @param streamWriter
     * @throws IOException
     */
   void writer(StreamWriter streamWriter) throws IOException;

}
